package com.dems.admin.controller;

import com.dems.dao.dataobject.ResDevice;
import com.dems.domain.JsonResponse;
import com.dems.service.ResDeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/resDevice")
public class ResDeviceController {

    @Autowired
    private ResDeviceService resDeviceService;

    @PostMapping("/find")
    public JsonResponse findResDeviceList(@RequestBody ResDevice resDevice){
        return JsonResponse.success(resDeviceService.queryResDeviceList(resDevice));
    }
    
}
